/* Modern Responsive Styles for Codeless Blog */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-color: #1e293b;
    --background-color: #f8fafc;
    --card-background: #ffffff;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background: var(--background-color);
    display: flex;
    flex-direction: column;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f8fafc;
        --background-color: #0f172a;
        --card-background: #1e293b;
    }
}

header {
    background: var(--primary-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    header {
        padding: 3rem 1rem;
    }
}

header h1 {
    margin: 0;
}

nav {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

article {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

article:hover {
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    article {
        padding: 2.5rem;
    }
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--primary-color);
    color: white;
    margin-top: auto;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.8;
}
